function policy=pol_finder(alg)

global STATES_MAX
for i=1:STATES_MAX

    
        
if alg.Pi(i,1)> alg.Pi(i,2)
    
policy(i)=1;

else
policy(i)=2;
   
end

end


policy



alg.Pi

